package cn.humaohua.study.elasticsearch6x.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static final String yyyyMMddHHmmss = "yyyyMMddHHmmsss";
    public static String formatDate(Date date){
        SimpleDateFormat sdf = new SimpleDateFormat(yyyyMMddHHmmss);
        return sdf.format(date);
    }
}
